<!DOCTYPE html>
<!-- saved from url=(0048)http://103.200.29.54/index.html#tabbar-with-chat -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
    <title></title>
    <script src="__WJS__/mui.min.js"></script>
    <link href="__WCSS__/mui.min.css" rel="stylesheet">
	<link href="__WCSS__/app.css" rel="stylesheet">
	<link href="__WCSS__/qdindex.css" rel="stylesheet">

	<style>
		
		
	</style>
</head>
<body style="background:#1a1d2e;" class="mui-ios mui-ios-11 mui-ios-11-0">

	<div id="tabbar-with-chat" class="mui-control-content mui-active">
		<header class="mui-bar mui-bar-nav header">
				<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
				<h1 class="mui-title h1">支付宝充值</h1>
		</header>

	<form class="mui-input-group" name="AddUser" action="{:U('Recharge/bank_rc')}" id="registerForm"  style="position: absolute;  top: 12%; height: 0px; width: 80%; left: 0px; right: 0px; margin: auto; ">
		<div class="mui-card-content qd" style="padding:5%;">
			<div style="width:96%;height:80%;margin:auto;text-align:center;">
				<img src="../Public/home/wap/images/btc.png" style="height:100%;"/>
			</div>
			<div style="width:96%;height:18%;margin:6% auto 0 auto;line-height:200%;text-align:center;">
				<span style="color:#fff;">银联扫描二维码</span>
			</div>
		</div>
		<div class="mui-input-row" style="height: 2.5em; border-radius:30px;background-color:#fff; margin-bottom: 30px;">
			<img src="../Public/home/wap/images/nubmer.png" style="position: absolute; width: 35px; margin-left: 15px; margin-top: 4px;">
			<input type="text" id="index_username" name="uname" value=""  style="color: #0062CC; margin-top: 2px;margin-left: 18%; font-size: 0.9em; font-family: &#39;微软雅黑&#39;;" placeholder="充值姓名">
		</div>
		<div class="mui-input-row" style="height: 2.5em; border-radius:30px;background-color:#fff; margin-bottom: 30px;">
			<img src="../Public/home/wap/images/nubmer.png" style="position: absolute; width: 35px; margin-left: 15px; margin-top: 5px;">
			<input type="text" name="account" value="" style=" color: #0062CC; margin-top: 2px;margin-left: 18%; font-size: 0.9em; font-family: &#39;微软雅黑&#39;;" placeholder="充值账号">
		</div>
		<div class="mui-input-row" style="height: 2.5em; border-radius:30px;background-color:#fff; margin-bottom: 30px;">
			<img src="../Public/home/wap/images/nubmer.png" style="position: absolute; width: 35px; margin-left: 15px; margin-top: 5px;">
			<input type="text" name="price" value="" style=" color: #0062CC; margin-top: 2px;margin-left: 18%; font-size: 0.9em; font-family: &#39;微软雅黑&#39;;" placeholder="充值金额">
		</div>
		<div class="mui-input-row" style="height: 2.5em; border-radius:30px;background-color:#fff; margin-bottom: 30px;">
			<img src="../Public/home/wap/images/nubmer.png" style="position: absolute; width: 35px; margin-left: 15px; margin-top: 5px;">
			<input type="text" name="marker" value="" style=" color: #0062CC; margin-top: 2px;margin-left: 18%; font-size: 0.9em; font-family: &#39;微软雅黑&#39;;" placeholder="备注">
		</div>

		<div class="mui-button-row" style="margin-bottom: 80px;">
			<button type="button" id="submit"  onclick="alipaynow()"   class="mui-btn mui-btn-danger" style="line-height: 2em; font-size: 0.9em; width: 90%; font-family: &#39;微软雅黑&#39;; border-radius: 30px; border: 0px solid; background: linear-gradient(45deg,BLUE,purple);" >保存</button>
		</div>

	</form>
	</div>
	<!--收单列表-->
	<div id="tabbar-with-map" class="mui-control-content">
	</div>
			

</body>

 <script type="text/javascript" src="__COM__/js/jquery-1.9.1.min.js" ></script>
 <script type="text/javascript" src="__COM__/layer/layer.js" ></script>
 <script type="text/javascript">

    function alipaynow(){
        var thisform=document.forms['AddUser'];
		var   uname=thisform.uname.value;
        var   account=thisform.account.value;       
        var   price=thisform.price.value;
        var   marker=thisform.marker.value;

        if(uname=='' || uname==null){
            layer.msg('充值人姓名');
            return false;
        }
		if(account=='' || account==null){
            layer.msg('充值账号');
            return false;
        }
		if(price=='' || price==null){
            layer.msg('充值金额');
            return false;
        }
		
        var post_url = $("form[name='AddUser']").attr('action');
        var post_data= $("form[name='AddUser']").serialize();
		$("#submit").attr('disabled',true)
        $.ajax({
            type: "POST",
            url: post_url,
            data:post_data,
            dataType: "json",
            success: function(data){
                if(data.status==1){
                    layer.msg(data.msg);  //,data.url);
					setTimeout(function (args) {
						window.location.href = "{:U('Recharge/rechargelist')}";
					}, 3000); 
                }else{
                    layer.msg(data.msg);
                }
            }
        });
    }

</script>	
</html>